package com.hotel.service.function.imp;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hotel.dao.function.FunctionMapper;
import com.hotel.entity.Function;
import com.hotel.service.function.FunctionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 *
 */
@Service
public class FunctionServiceImpl extends ServiceImpl<FunctionMapper, Function>
    implements FunctionService {

    @Resource
    private FunctionMapper functionMapper;

    @Override
    public List<Function> getAllFunction() {
        LambdaQueryWrapper<Function> lwq = new LambdaQueryWrapper<>();
        return functionMapper.selectList(lwq);
    }

    @Override
    public List<Function> findMenusByNumber(String number) {
        return functionMapper.findFunctionListByNumber(number);
    }
}




